package org.luxor.cloud.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * 方式二：采用[RefreshScope注解]实现自动配置更新
 *
 * @author Mr.Yan  @date: 2020/9/1
 */
@Getter
@RefreshScope
@Configuration
public class ExampleCloudConfiguration {

    @Value(value = "${config.refresh-scope.enabled:false}")
    private boolean enabled;

}
